<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" %>
 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
 <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>煤炭交易合同</TITLE>
<link rel="stylesheet" type="text/css" href="<s:url value="/resources"/>/extjs/css/ext-all-neptune.css">
<script type="text/javascript" src="<s:url value="/resources"/>/extjs/bootstrap.js"></script>
<script type="text/javascript" src="<s:url value="/resources"/>/extjs/ext-lang-zh_CN.js"></script>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>


<STYLE type=text/css>
@media Print    
{
.noprint {
	DISPLAY: none
}

}

@media Screen    
{
.nodisplay {
	DISPLAY: none
}
    }
TD {
	HEIGHT: 25px
}
.tbl {
	BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-RIGHT: #000000 1px solid
}
.tr {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none
}
.tl {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-RIGHT: #000000 1px solid
}
.trb {
	BORDER-BOTTOM-STYLE: none; BORDER-LEFT: #000000 1px solid; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none
}
.rb {
	BORDER-BOTTOM-STYLE: none; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT-STYLE: none; BORDER-TOP: #000000 1px solid
}
.bl {
	BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid
}
.trbl {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid
}
.vTable {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-COLLAPSE: collapse; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid
}
.vTable TD {
	BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: center; BORDER-LEFT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid
}
.vTable1 {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-COLLAPSE: collapse; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid
}
#box_relative {
	POSITION: absolute; FLOAT: left; TOP: 0px; LEFT: 0px
}
</STYLE>

<SCRIPT language=javascript type=text/javascript>
window.print();
    function SaveYinZhang()
    {
        if("1"=="1")
//            if (!SetCAValue('hidCABackValue', 'hidCAContrlos', '')) 
//            {
//                return false;
//            }
               show('myTable','签章处理中，请稍候...');
        document.getElementById('BtnSave').click();
        
    }
    
    function addyinzhang(Leix)
    {

      var m='qianzhang1';
    
      var QM='QianMing1';
    
      var maimlx='6';
      var boolvar=true;
      
   
         
    if(maimlx=='5')
    {
    
    
    if(Leix=='QianZhang')
      {       
         if("0"=="1")
         {  
          if(DWebSignSeal.FindSeal(QM, 2)=='')
           {
           alert("请先签名!!");
           return;
           }
         }
         
          if("0"=="1")
          {
          boolvar=addseal(m,0,0,'H_MaiShDH');
          }
           else
          {
            alert('签章功能未启用');
            return;
          }
      }
    else
      { 
       if("0"=="1")
        {
        boolvar=addseal(QM,0,0,'H_MaiSHFDDBR');
        
        }
        else
        {
         alert('签名功能未启用');
         return;
        }
      }
    
    }
    
    
    
    if(maimlx=='6')
    {
    

      if(Leix=='QianZhang')
      { 
        if("0"=="1")
         { 
          if(DWebSignSeal.FindSeal(QM, 2)=='')
           {
           alert("请先签名!!");
           return;
           }
         }
          if("0"=="1")
          {
           boolvar=addseal(m,0,0,'H_ChuDianH');
          }
          else
          {
            alert('签章功能未启用');
            return;
          }
      }
      else
      {
         if("0"=="1")
         {
         
      
         boolvar=addseal(QM,0,0,'H_ChuFaDDBR');
         
         }  
         else
        {
         alert('签名功能未启用');
         return;
        }
      }
    }   
    
     if(boolvar)
      {
      
        if("0"=="1")
        {
          if(Leix=='QianZhang')
          { 
          SaveWebSign('YinZhangFiled');SaveYinZhang();
          }
       }
       else
       {
         SaveWebSign('YinZhangFiled');SaveYinZhang();
       }
      }
    }
    </SCRIPT>

<SCRIPT id=print language=JavaScript type=text/ecmascript>
        var hkey_root, hkey_path, hkey_key
        hkey_root = "HKEY_CURRENT_USER"
        hkey_path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
        //设置网页打印的页眉页脚为空
        function pagesetup_null() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell")
                hkey_key = "header"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
                hkey_key = "footer"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
            } catch (e) { }
        }
        //设置网页打印的页眉页脚为默认值
        function pagesetup_default() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell")
                hkey_key = "header"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&w&b页码，&p/&P")
                hkey_key = "footer"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&u&b&d")
            } catch (e) { }
        }
    </SCRIPT>

<META name=GENERATOR content="MSHTML 9.00.8112.16526"></HEAD>
<BODY style="FONT-SIZE:9pt">
<FORM id=form1 method=post name=form1 
action=Lrht_TL_YD_reader.aspx?heth=HG1T12122301450112&amp;jiaoylx=QGTL&amp;isDaY=FALSE&amp;style=2>
<DIV><INPUT id=__VIEW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EFDDA2MzUtNDI4NjU4OWRkAjUPDxYCHwEFDDA2MzUtNDI4NjU4OWRkAjYPDxYCHwEFIeS4reS/oemTtuihjOWkquWOn+WIhuihjOiQpeS4mumDqGRkAjcPDxYCHwEFDOS4reS/oemTtuihjGRkAjgPDxYCHwEFEuS4reWbveW3peWVhumTtuihjGRkAjkPDxYCHwEFEuS4reWbveW3peWVhumTtuihjGRkAjoPDxYCHwEFEzcyNjExMTAxODIyMDAwNjk3MTlkZAI7Dw8WAh8BBRMxMDExMzAwMDAwMDAwMDAwODg0ZGQCPA8PFgIfAQUTMTYxMTAwMjYwOTIwMDA1NjM3MGRkAj0PDxYCHwEFEzE2MTEwMDI2MDkyMDAwNTYzNzBkZAI+Dw8WAh8BBQ8xNDAxMTE2NjY2MDgwOFhkZAI/Dw8WAh8BBQ8xNDAzMDI1ODYxODY3N1hkZAJADw8WAh8BBQ8zNzI1MjQ3OTE1MTE1MTlkZAJBDw8WAh8BBQ8zNzI1MjQ3OTE1MTE1MTlkZAJCDw8WAh8BBQYwMzAwMDJkZAJDDw8WAh8BBQYwNDUwMDBkZAJEDw8WAh8BBQYyNTIxMDBkZAJFDw8WAh8BBQYyNTIxMDBkZAJGDw8WAh8BBQoyMDEzLTAxLTAxZGQCRw8PFgIfAQUKMjAxMy0xMi0zMWRkAlEPDxYCHwJoZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgIFDHJidElzTG9uZ0hlVAUMcmJ0SXNMb25nSGVUReVgo9QTD50PtA+uKQdr0FJY87U= 
type=hidden> </DIV>
<TABLE style="WIDTH: 1340px; BORDER-COLLAPSE: collapse" id=myTable 
cellPadding=0>
  <TBODY>
  <TR>
    <TD style="WIDTH: 100%; HEIGHT: 50px" colSpan=8>
      <TABLE style="WIDTH: 100%">
        <TBODY>
        <TR>
          <TD style="WIDTH: 20%">
            <DIV id=box_relative class=nodisplay> </DIV></TD>
          <TD style="WIDTH: 60%" align=center>
            <H4><SPAN style="FONT-SIZE: xx-large; FONT-WEIGHT: bold" 
            id=lblBiaoT>煤 炭 交 易 合 同 </SPAN></H4></TD>
          <TD 
          style="TEXT-ALIGN: left; WIDTH: 20%; FONT-SIZE: large; FONT-WEIGHT: bold"><SPAN 
            style="FONT-SIZE: large; FONT-WEIGHT: bold" id=lblHTtype> </SPAN> 
          </TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">出卖人： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 65%" colSpan=5><SPAN 
      id=lblChuMR>${ht.chumdwmc}</SPAN> </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">合同编号： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%"><SPAN 
      id=lblHeTBH>${ht.hetbh}</SPAN> </TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">买受人： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 65%" colSpan=5><SPAN 
      id=lblMaiShR>${ht.maisdwmc}</SPAN> </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">签订地点： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%">${ht.qianydd}</TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">发货单位： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 65%" colSpan=5><SPAN 
      id=lbfhdw>${ht.fahdwmc}</SPAN> </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">签订时间： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%"><SPAN 
      id=lblQianYShJ>${fn:substring(ht.qianysj, 0, 10)}</SPAN> </TD></TR>
 <%-- <TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">邀约形式： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 65%" colSpan=5><SPAN 
      id=lblYaoYXSh></SPAN></TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%"></TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%"></TD></TR>
  <DIV id=trOther></DIV>
<TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 20%" colSpan=2><INPUT id=rbtIsLongHeT 
      name=rbtIsLongHeT value=rbtIsLongHeT type=radio <c:if test="${ht.hetxs=='1'}">checked</c:if> ><LABEL for=rbtIsLongHeT> 
      是否中长期合同</LABEL> </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%" colSpan=2>企业合同号：<SPAN 
      id=lblQiYHeTBH>${ht.hetlrbh}</SPAN> </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%" colSpan=2>合同年份：<SPAN 
      id=lblHeTNianF>${ht.nianf}</SPAN>年 </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">隶属： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 25%"><SPAN id=lblLiShu>${ht.hangylsname}</SPAN> 
</TD></TR>--%><DIV></DIV>
  <TR>
    <TD colSpan=8>一、收货人名称、发到站、品种规格、质量、交（提）货时间、数量 </TD></TR>
  <TR>
    <TD colSpan=8>
      <TABLE class=vTable cellPadding=0>
        <TBODY>
        <TR>
          <TD rowSpan=3>收货人名称 </TD>
          <TD rowSpan=3>发站 </TD>
          <TD rowSpan=3>到站 </TD>
          <TD rowSpan=3>品种规格 </TD>
          <TD rowSpan=3>质 量 </TD>
          <TD colSpan=13>交（提）货时间、数量（吨） </TD></TR>
        <TR>
          <TD rowSpan=2>全年合计 </TD>
          <TD colSpan=3>一季度 </TD>
          <TD colSpan=3>二季度 </TD>
          <TD colSpan=3>三季度 </TD>
          <TD colSpan=3>四季度 </TD></TR>
        <TR>
          <TD>1月 </TD>
          <TD>2月 </TD>
          <TD>3月 </TD>
          <TD>4月 </TD>
          <TD>5月 </TD>
          <TD>6月 </TD>
          <TD>7月 </TD>
          <TD>8月 </TD>
          <TD>9月 </TD>
          <TD>10月 </TD>
          <TD>11月 </TD>
          <TD>12月 </TD></TR>
        <TR>
          <TD width=190><SPAN id=lblShHR 
            onfocus="return btnChuMaiRen_onclick()">
                 <c:choose>
    <c:when test="${bz==2}">
     <INPUT TYPE="text" NAME="shouhdwmc" id=shouhdwmc size=23 style="border: #ff0000 1px solid;" value="${ht.shouhdwmc}"   />
    </c:when>
   <c:otherwise>  
     ${ht.shouhdwmc}
   </c:otherwise>
  </c:choose> 
            
            
            
            </SPAN> </TD>
          <TD width=100><SPAN id=lblFaZh>${ht.fazmch}</SPAN> </TD>
          <TD width=100><SPAN id=lblDaoZh>${ht.daozmch}</SPAN> </TD>
          <TD width=100><SPAN id=lblPinP>${ht.pinzgg}</SPAN> <INPUT 
            style="DISPLAY: none" id=txtPinP name=txtPinP> </TD>
          <TD><SPAN id=lblZhiL>
           <c:choose>
    <c:when test="${bz==2}">
     <INPUT TYPE="text" NAME="zhilzb" id=zhilzb size=22 style="border: #ff0000 1px solid;" value="${ht.zhilzb}"  />
    </c:when>
   <c:otherwise>  
     ${ht.zhilzb}
   </c:otherwise>
  </c:choose>  
          
          
          
          </SPAN> </TD>
          <TD width=60><SPAN id=lblShuL><fmt:formatNumber value="${ht.shul}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL1><fmt:formatNumber value="${ht.gml1}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL2><fmt:formatNumber value="${ht.gml2}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL3><fmt:formatNumber value="${ht.gml3}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL4><fmt:formatNumber value="${ht.gml4}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL5><fmt:formatNumber value="${ht.gml5}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL6><fmt:formatNumber value="${ht.gml6}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL7><fmt:formatNumber value="${ht.gml7}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL8><fmt:formatNumber value="${ht.gml8}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL9><fmt:formatNumber value="${ht.gml9}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL10><fmt:formatNumber value="${ht.gml10}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL11><fmt:formatNumber value="${ht.gml11}" pattern="#.##" /></SPAN> </TD>
          <TD width=50><SPAN id=lblShuL12><fmt:formatNumber value="${ht.gml12}" pattern="#.##" /></SPAN> 
  </TD></TR></TBODY></TABLE></TD></TR>
  <DIV id=trJiaG></DIV>
  <TR>
    <TD style="TEXT-ALIGN: left; WIDTH: 5%">价格类型： </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 15%"><SPAN id=lblJIAGLX>${ht.jiaglxmc}</SPAN> 
    </TD>
    <TD style="TEXT-ALIGN: left; WIDTH: 70%" colSpan=6>价格： <SPAN 
      id=lblDanJ><INPUT id=htbh name=htbh type=hidden value="${ht.hetbh}">
      <c:choose>
    <c:when test="${bz==1}">
     <INPUT TYPE="text" NAME="jiag" id=jiag size=7 style="border: #ff0000 1px solid;" value=<fmt:formatNumber value="${ht.jiag}" pattern="#.##" />>
    </c:when>
   <c:otherwise>  
     <fmt:formatNumber value="${ht.jiag}" pattern="#.##" />
   </c:otherwise>
  </c:choose>
  </SPAN>(元/吨) </TD></TR>
  <DIV></DIV>
  				<tr style="line-height:26px;">
					<td colspan="8">
						<table id="djtk" cellpadding="0" cellspacing="0" border rules=rows
							frame=below class="content">
						<c:forEach var="tk" items="${mrhttk}">
								<tr>
									<td  >${tk.xh}${tk.biaot}  </td>
									<td style="width:86%"><div id="neir${tk.xh}">${tk.neir}</div>
									</td>
								</tr>
							</c:forEach>	

						</table>
					</td>
				</tr>
  				<tr style="line-height:10px;">
					<td colspan="8">
					 
					</td>
				</tr>				
  <TR>
    <TD style="HEIGHT: 24px" colSpan=8>
      <TABLE class=vTable1 cellPadding=0>
        <TBODY>
        <TR>
          <TD class=trbl colSpan=4 align=center>出卖人 </TD>
          <TD class=trbl colSpan=4 align=center>买受人 </TD>
          <TD class=rb>&nbsp; </TD>
          <TD class=bl></TD></TR>
        <TR>
          <TD class=rb width=120>出卖人名称（章）： </TD>
          <TD class=bl width=150><SPAN id=lblChuMRname>${ht.chumdwmc}</SPAN> </TD>
          <TD style="WIDTH: 135px" class=rb>结算单位名称： </TD>
          <TD style="WIDTH: 150px" class=bl><SPAN 
            id=lblChuMJSDWMCH>${ht.chumdwjsrmc}</SPAN> </TD>
          <TD class=rb width=120>买受人名称（章）： </TD>
          <TD style="WIDTH: 150px" class=bl><SPAN 
            id=lblMaiSrname>${ht.maisdwmc}</SPAN> </TD>
          <TD style="WIDTH: 134px" class=rb>结算单位名称： </TD>
          <TD class=bl width=150><SPAN id=lblMaiShJSDWMCH>${ht.maisdwjsrmc}</SPAN> 
</TD>
          <TD class=trb width=120>鉴（公）证单位： </TD>
          <TD class=tbl></TD></TR>
        <TR>
          <TD class=trb>住 所： </TD>
          <TD class=tbl><SPAN id=lblChuMrZhuS>${ht.chumdwdz}</SPAN> </TD>
          <TD style="WIDTH: 135px" class=trb>结算单位住所： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblChuMJSDWZHS>${ht.chumdwjsrdz}</SPAN> </TD>
          <TD class=trb>住 所： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblMaiSrZhuS>${ht.maisdwdz}</SPAN> </TD>
          <TD style="WIDTH: 134px" class=trb>结算单位住所： </TD>
          <TD class=tbl><SPAN id=lblMaiShJSDWZHS>${ht.maisdwjsrdz}</SPAN> </TD>
          <TD class=trb align=left>经办人： </TD>
          <TD class=tbl></TD></TR>
        <TR>
          <TD class=trb>法定代表人 ： </TD>
          <TD id=H_ChuFaDDBR class=tbl><SPAN id=lblChuMrDbr>${ht.chumdwfddbr}</SPAN> </TD>
          <TD style="WIDTH: 135px" class=trb>结算单位法定代表人： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblChuMJSDWFDDBR>${ht.chumdwjsrfddbr}</SPAN> </TD>
          <TD class=trb>法定代表人： </TD>
          <TD style="WIDTH: 150px" id=H_MaiSHFDDBR class=tbl><SPAN 
            id=lblMaiSrDbr>${ht.maisdwfddbr}</SPAN> </TD>
          <TD style="WIDTH: 134px" class=trb>结算单位法定代表人： </TD>
          <TD class=tbl><SPAN id=lblMaiShJSDWFDDBR>${ht.maisdwjsrfddbr}</SPAN> </TD>
          <TD class=trb></TD>
          <TD class=tbl></TD></TR>
        <TR>
          <TD style="HEIGHT: 25px" class=trb>委托代理人 ： </TD>
          <TD style="HEIGHT: 25px" class=tbl><SPAN id=lblChuMrDlr>${ht.chumdwwtdlr}</SPAN> 
          </TD>
          <TD style="WIDTH: 135px; HEIGHT: 25px" class=trb>结算单位委托代理人： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblChuMJSDWWTDLR>${ht.chumdwjsrwtdlr}</SPAN> </TD>
          <TD style="HEIGHT: 25px" class=trb>委托代理人 ： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblMaiSrDlr>${ht.maisdwwtdlr}</SPAN> </TD>
          <TD style="WIDTH: 134px; HEIGHT: 25px" class=trb>结算单位委托代理人： </TD>
          <TD style="HEIGHT: 25px" class=tbl><SPAN 
            id=lblMaiShJSDWWTDLR>${ht.maisdwjsrwtdlr}</SPAN> </TD>
          <TD style="HEIGHT: 25px" class=trb></TD>
          <TD style="HEIGHT: 25px" class=tbl></TD></TR>
        <TR>
          <TD class=trb>电 话： </TD>
          <TD id=H_ChuDianH class=tbl><SPAN id=lblChuMrDh>${ht.chumdwdh}</SPAN> 
          </TD>
          <TD style="WIDTH: 135px" class=trb>结算单位电话： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblChuMJSDWDH>${ht.chumdwjsrdh}</SPAN> </TD>
          <TD class=trb>电话： </TD>
          <TD style="WIDTH: 150px" id=H_MaiShDH class=tbl><SPAN 
            id=lblMaiSrDh>${ht.maisdwdh}</SPAN> </TD>
          <TD style="WIDTH: 134px" class=trb>结算单位电话： </TD>
          <TD class=tbl><SPAN id=lblMaiShJSDWDH>${ht.maisdwjsrdh}</SPAN> </TD>
          <TD class=trb></TD>
          <TD class=tbl>鉴（公）证机关（章） &nbsp; </TD></TR>
        <TR>
          <TD style="HEIGHT: 25px" class=trb>传真： </TD>
          <TD style="HEIGHT: 25px" class=tbl><SPAN 
            id=lblChuMrDb>${ht.chumdwcz}</SPAN> </TD>
          <TD style="WIDTH: 135px; HEIGHT: 25px" class=trb>结算单位传真： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblChuMJSDWDBGH>${ht.chumdwjsrcz}</SPAN> </TD>
          <TD style="HEIGHT: 25px" class=trb>传真： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblMaiSrDb>${ht.maisdwcz}</SPAN> </TD>
          <TD style="WIDTH: 134px; HEIGHT: 25px" class=trb>结算单位传真： </TD>
          <TD style="HEIGHT: 25px" class=tbl><SPAN 
            id=lblMaiShJSDWDBGH>${ht.maisdwjsrcz}</SPAN> </TD>
          <TD style="HEIGHT: 25px" class=trb colSpan=2></TD></TR>
        <TR>
          <TD style="HEIGHT: 25px" class=trb width=120>开户银行： </TD>
          <TD style="HEIGHT: 25px" class=tbl width=150><SPAN 
            id=lblChuMrYh>${ht.chumdwkhyh}</SPAN> </TD>
          <TD style="WIDTH: 135px; HEIGHT: 25px" class=trb>结算单位开户银行： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblChuMJSDWKHYH>${ht.chumdwjsrkhyh}</SPAN> </TD>
          <TD style="HEIGHT: 25px" class=trb width=120>开户银行： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 25px" class=tbl><SPAN 
            id=lblMaiSrYh>${ht.maisdwkhyh}</SPAN> </TD>
          <TD style="WIDTH: 134px; HEIGHT: 25px" class=trb>结算单位开户银行： </TD>
          <TD style="HEIGHT: 25px" class=tbl width=150><SPAN 
            id=lblMaiShJSDWKHYH>${ht.maisdwjsrkhyh}</SPAN> </TD>
          <TD colSpan=2 align=right>&nbsp;年 月 日 </TD></TR>
        <TR>
          <TD class=trb>帐号： </TD>
          <TD class=tbl><SPAN id=lblChuMrZh>${ht.chumdwzh}</SPAN> </TD>
          <TD style="WIDTH: 135px" class=trb>结算单位帐号： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblChuMJSDWZHH>${ht.chumdwjsrzh}</SPAN> </TD>
          <TD class=trb>帐号： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblMaiSrZh>${ht.maisdwzh}</SPAN> </TD>
          <TD style="WIDTH: 134px" class=trb>结算单位帐号： </TD>
          <TD class=tbl><SPAN id=lblMaiShJSDWZHH>${ht.maisdwjsrzh}</SPAN> 
</TD>
          <TD colSpan=2></TD></TR>
        <TR>
          <TD style="HEIGHT: 37px" class=trb>纳税人登记号： </TD>
          <TD style="HEIGHT: 37px" class=tbl><SPAN 
            id=lblChuMrNs>${ht.chumdwnsrdjh}</SPAN> </TD>
          <TD style="WIDTH: 135px; HEIGHT: 37px" class=trb>结算单位纳税人登记号： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 37px" class=tbl><SPAN 
            id=lblChuMJSDWNSHRDJH>${ht.chumdwjsrnsrdjh}</SPAN> </TD>
          <TD style="HEIGHT: 37px" class=trb>纳税人登记号： </TD>
          <TD style="WIDTH: 150px; HEIGHT: 37px" class=tbl><SPAN 
            id=lblMaiSrNs>${ht.maisdwnsrdjh}</SPAN> </TD>
          <TD style="WIDTH: 134px; HEIGHT: 37px" class=trb>结算单位纳税人登记号： </TD>
          <TD style="HEIGHT: 37px" class=tbl><SPAN 
            id=lblMaiShJSDWNSHRDJH>${ht.maisdwjsrnsrdjh}</SPAN> </TD>
          <TD colSpan=2>（注：除国家另有规定外，鉴（公）证实行自愿原则） </TD></TR>
        <TR>
          <TD class=trb>邮政编码： </TD>
          <TD class=tbl><SPAN id=lblChuMrYb>${ht.chumdwyzbm}</SPAN> </TD>
          <TD style="WIDTH: 135px" class=trb>结算单位邮政编码： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN 
            id=lblChuMJSDWYZHBM>${ht.chumdwjsryzbm}</SPAN> </TD>
          <TD class=trb>邮政编码： </TD>
          <TD style="WIDTH: 150px" class=tbl><SPAN id=lblMaiSrYb>${ht.maisdwyzbm}</SPAN> 
          </TD>
          <TD style="WIDTH: 134px" class=trb>结算单位邮政编码： </TD>
          <TD class=tbl><SPAN id=lblMaiShJSDWYZHBM>${ht.maisdwjsryzbm}</SPAN> </TD>
          <TD colSpan=2></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD colSpan=8 align=right>合同有效期： <SPAN id=lblJGKS>${fn:substring(ht.youxqxkssj, 0, 10)}</SPAN> 至 
      <SPAN id=lblJGJS>${fn:substring(ht.youxqxjssj, 0, 10)}</SPAN> </TD></TR></TBODY></TABLE>
<TABLE width=1340>
  <TBODY>
  <TR>
    <TD align=center>
           
    
     <div id='actdiv' style="{ text-align:center;margin:0 auto;  } "></div>
    
   
    <div id='actdiva' style="{ text-align:center;margin:0 auto;  } "></div>
 
  <div id='actdivz' style="{ text-align:center;margin:0 auto;  } "></div>
   
    
    <INPUT style="DISPLAY: none" id=QianMing onclick=" addyinzhang('QianMing');" name=QianMing value=签名 type=button> 
<INPUT style="DISPLAY: none"  id=gaizhang onclick=" addyinzhang('QianZhang');" name=gaizhang value=签章 type=button> 
<INPUT style="DISPLAY: none" id=savezhang onclick="SaveWebSign('YinZhangFiled');SaveYinZhang();" name=savezhang value=保存签章 type=button> 
<INPUT style="DISPLAY: none" id=BtnSave name=BtnSave value=Button type=submit> 
      <INPUT id=YinZhangFiled name=YinZhangFiled type=hidden> <INPUT 
      id=hidCAContrlos name=hidCAContrlos type=hidden> <INPUT id=hidCABackValue 
      name=hidCABackValue type=hidden> <INPUT id=tbsessionuserid 
      name=tbsessionuserid type=hidden> <INPUT id=hidYanZhXX name=hidYanZhXX 
      value=BD121D3F6D6F8098 type=hidden> </TD></TR></TBODY></TABLE>
<SCRIPT language=javascript type=text/javascript>
        var btncontrol = '0';
        if (btncontrol == "0") {
            document.getElementById('BtnSave').style.display = "none";
            document.getElementById('gaizhang').style.display = "none";
            document.getElementById('savezhang').style.display = "none";
            document.getElementById('QianMing').style.display = "none";
        }
        if (document.getElementById('YinZhangFiled').value != '') { display(document.getElementById('YinZhangFiled').value, btncontrol); }
  
 Ext.Loader.setConfig({enabled: true});
 Ext.onReady(function(){
	 var mypanel =Ext.create('Ext.form.Panel', {
	 border:false,
	 width:80,
	 renderTo: 'actdiv',
	 items: [
	  {
		    	xtype:'button',
		    	margin:'0 0 20 0',
		        text: '确  定',
		        formBind: true, //only enabled once the form is valid
		        disabled: true,
		        handler: function() {
		            Ext.Ajax.request({                                   
                        url: 'SaveJiag',  //请求地址
                       //提交参数组  
                        params: {  
                           htbh:Ext.get('htbh').dom.value,  
                           jiag:Ext.get('jiag').dom.value  
                       },  
                        //成功时回调  
                       success: function(response, options) {  
                         //获取响应的json字符串  
                         var responseArray = Ext.JSON.decode(response.responseText);                                                
                              if(responseArray.success==true){  
                                  Ext.Msg.alert('恭喜','操作成功！');      
                              }  
                              else{  
                                 Ext.Msg.alert('失败','操作失败！');      
                              }  
                      }  
             }); 
	 
		        }
		    }]
	 });
	 
 var mypanel1 =Ext.create('Ext.form.Panel', {
	 border:false,
	 width:80,
	 renderTo: 'actdiva',
	 items: [
	  {
		    	xtype:'button',
		    	margin:'0 0 20 0',
		        text: '买方确 定',
		        formBind: true, //only enabled once the form is valid
		        disabled: true,
		        handler: function() {
		            Ext.Ajax.request({                                   
                        url: 'SaveQrxx',  //请求地址
                       //提交参数组  
                        params: {  
                           htbh:Ext.get('htbh').dom.value, 
        				   shouhdwmc:Ext.get('shouhdwmc').dom.value,  
                           zhilzb:Ext.get('zhilzb').dom.value  
                       },  
                        //成功时回调  
                       success: function(response, options) {  
                         //获取响应的json字符串  
                         var responseArray = Ext.JSON.decode(response.responseText);                                                
                              if(responseArray.success==true){  
                                  Ext.Msg.alert('恭喜','操作成功！');      
                              }  
                              else{  
                                 Ext.Msg.alert('失败','操作失败！');      
                              }  
                      }  
             }); 
	 
		        }
		    }]
	 });	 
	 

 var mypanel2 =Ext.create('Ext.form.Panel', {
	 border:false,
	 width:120,
	 renderTo: 'actdivz',
	 items: [
	  {
		    	xtype:'button',
		    	margin:'0 0 20 0',
		    	
		        text: '主管单位确认',
		        formBind: true, //only enabled once the form is valid
		        disabled: true,
		        handler: function() {
		            Ext.Ajax.request({                                   
                        url: 'SaveZgdw',  //请求地址
                       //提交参数组  
                        params: {  
                           htbh:Ext.get('htbh').dom.value, 
        				   shouhdwmc:Ext.get('shouhdwmc').dom.value,  
                           zhilzb:Ext.get('zhilzb').dom.value  
                       },  
                        //成功时回调  
                       success: function(response, options) {  
                         //获取响应的json字符串  
                         var responseArray = Ext.JSON.decode(response.responseText);                                                
                              if(responseArray.success==true){  
                                  Ext.Msg.alert('恭喜','操作成功！');      
                              }  
                              else{  
                                 Ext.Msg.alert('失败','操作失败！');      
                              }  
                      }  
             }); 
	 
		        }
		    }]
	 });	 
	 
	 } );
	 
	 
            document.getElementById('actdiv').style.display = "none";
            document.getElementById('actdiva').style.display = "none";	
            document.getElementById('actdivz').style.display = "none"; 
	 
	 var bz=${bz}
        if (bz == 1) {
        	document.getElementById('actdiv').style.display = "";
            document.getElementById('actdiva').style.display = "none";
            document.getElementById('actdivz').style.display = "none";
        }	 
	 
        if (bz == 2) {
          	document.getElementById('actdiva').style.display = "";
            document.getElementById('actdiv').style.display = "none";
            document.getElementById('actdivz').style.display = "none";
        }	
        if (bz == 3) {
        	document.getElementById('actdivz').style.display = "";
           document.getElementById('actdiva').style.display = "none";
            document.getElementById('actdiv').style.display = "none";
        }        
    </SCRIPT>
</FORM></BODY></HTML>